<template>
	<view class="container">
		<!-- <uv-sticky>
			<uv-tabs :list="list" :scrollable="false" @change="change"></uv-tabs>
		</uv-sticky> -->
		<view v-show="current == 0">
			<refundList ref="refundList"></refundList>
		</view>
		<!-- 		<view v-show="current == 1">
			<refundReview ref="refundReview"></refundReview>
		</view> -->
		<tabBar></tabBar>
	</view>

</template>

<script>
	import refundList from './refundList/index.vue'
	import refundReview from './refundReview/index.vue'
	export default {
		components: {
			refundList,
			refundReview,
		},
		data() {
			return {
				list: [{
						name: '退款列表'
					},
					// {
					// 	name: '退款审核'
					// },
				],
				current: 0,
				a: false,
				b: false,
				aa: false,
				bb: false,
			}
		},
		onLoad(e) {

		},
		onShow() {
			this.$refs.refundList.onShow1();
			// this.$refs.refundReview.onShow1();
		},
		onPullDownRefresh() {
			if (this.current === 0) {
				this.$refs.refundList.onPullDownRefresh1();
			} else if (this.current === 1) {
				this.$refs.refundReview.onPullDownRefresh1();
			}
			uni.stopPullDownRefresh(); //停止刷新
		},
		onReachBottom() {
			if (this.current === 0) {
				this.$refs.refundList.onReachBottom1();
			} else if (this.current === 1) {
				this.$refs.refundReview.onReachBottom1();
			}
		},
		methods: {
			change(item) {
				this.current = item.index;
			},
		},
		onShareAppMessage(e) {
			return {
				title: '飞鑫付',
				path: '/pages/index/index'
			}
		},

	}
</script>

<style>
	.uv-tabs {
		background-color: #ffffff;
	}
</style>
<style lang="scss" scoped>
	.container {
		height: 100vh;
		background: #f4f4f4;

	}

	.nav-title {
		color: #031A6E
	}

	/deep/.uv-tabs__wrapper__nav__item {
		width: 29%;
	}
</style>